package com.mapper;

import com.entity.Emp;
import com.entity.EmpFlatCheck;

import java.util.List;

public interface EmpMapper {
    List<Emp> listByParam(Emp emp);
    Emp getByUsername(Emp emp);
    Emp getByEmpId(Integer empId);
    //List<Emp> listByStatus(Integer status);
    int insert(Emp emp);
    int delete(Integer empId);
    int update(Emp emp);

    // 员工平调审核
    int insertFlat(EmpFlatCheck empFlatCheck);
    //平调审核通过
    int updateFlat(EmpFlatCheck empFlatCheck);
    List<EmpFlatCheck> listEmpFlatCheck(EmpFlatCheck empFlatCheck);

    //删除平调审核历史
    int deleteFlat(Integer empFlatId);
}
